package com.yesep.learn.comm.middle;

import com.yesep.learn.comm.middle.util.CommUtil;
import com.yesep.learn.comm.middle.util.JythonFactory;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

@Slf4j
public class PythonJunit {
    JythonFactory jython;
    private String pyfile = "script/2011.py";

    @Before
    public void init() {
        jython = JythonFactory.getInstance();
    }

    @Test
    public void test() {
        Boolean b1 = CommUtil.handle("2011.py", "2011data");
        Assert.assertTrue(b1);
        Boolean b2 = CommUtil.handle("2061.py", "2061data");
        Assert.assertTrue(b1);

    }


}
